package model

import "github.com/jinzhu/gorm"

type Sms struct {
	gorm.Model
	Mobile		 string     `gorm:"index"`//15108280907
	ClientId   	 string  `gorm:type:varchar(32)`//111111
	Template         string //  登陆验证码
	TemplateType         string //  login
	Code          	 string
	ChannelId        string
	Result           string//
}

//短信验证模板
type Template struct {
	gorm.Model
	ClientId   	string  `gorm:type:varchar(32)`//111111
	Template        string  `gorm:type:varchar(256)`//登陆验证码:xxx
}

//渠道
type Channel struct {
	gorm.Model
	Name string//luosimao
	ApiDomain string //http://sms-api.luosimao.com/v1/send.[json|xml]
	Org  string// 成都xx科技有限公司
	Account string
	Key  string //11111
	Secret string //222222
	CallBackUrl string//回调地址
}


